package com.xuwang.Util;

/**
 * @ Author xuwang
 * @ Date 2021/8/2 12:13
 * @ VERSION 1.0.0
 */

/**
 * @ Desc      封装JSON格式数据对象
 * @ Params    code 状态码 msg响应信息  count 对象条数 data 对象数据
 * @ Returns   返回JSON数据对象
 * @ Other
 */


public class TableResult<T> {
    private int code;
    private String msg;
    private int count;
    private T data;

    public TableResult() {
    }

    public TableResult(Integer code, String msg, int count, T data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}


